package com.ymatou.iapi.withdraw.service;

import net.sf.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*提现申请--买手申请提现到银行卡Call
*FreeMaker Template自动生成代码
*/
public class applyBankWithDrawForHunterCall extends YmatouBaseCall{
	private static String opurl ="/api/WithDrawInvoice/applyBankWithDrawForBuyer";
	
	public applyBankWithDrawForHunterCall() {
		super(EnvSetup.getSystemUrl("withdraw_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	
	 public String getSuccess()
	    {
	        return getString("Success");
	    }

	    public String getCode()
	    {
	        return getString("Code");
	    }
	    public String getTraceTime()
	    {
	        return getString("TraceTime");
	    }
	    public String getBCode()
	    {
	        return getString("BCode");
	    }
	    
	    public String getMsg()
	    {
	        return getString("Msg");
	    }
	    
	    public String getInvoiceId()
	    {
	       // return DataUtil.Json.parseJsonObj(getString("Data")).getString("invoiceId");
	    	 return  JSONObject.fromObject(getString("Data")).getString("invoiceId");
	    }
}